package com.xbongbong.pro.history.pojo;

import com.xbongbong.paas.constant.PaasConstant;
import com.xbongbong.pro.domain.entity.AiAssistantHistoryEntity;
import com.xbongbong.pro.smartsettings.pojo.SsHistoryValidPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 吴峰
 * @date 2020/09/08 18:57
 */
@Getter
@Setter
@ToString
public class AiAssistantHistoryPojo implements Serializable {
    private static final long serialVersionUID = -2034966759888692964L;

    private Map<Long, List<AiAssistantHistoryEntity>> triggerNumMap;
    /**
     * 工作报告有效数据列表{smartId: [historyEntity1, historyEntity2]}
     */
    private Map<Long, List<AiAssistantHistoryEntity>> workReportTriggerNumMap;

    private List<SsHistoryValidPojo> validPojoList;

    /**
     * 待失效数据ids{smartId: [dataId1,dataId2]}
     */
    private Map<Long, List<Long>> waitInvalidIdsMap;
    /**
     * 待失效数据列表{smartId: [historyEntity1, historyEntity2]}
     */
    private Map<Long, List<AiAssistantHistoryEntity>> waitInvalidListMap;


    public AiAssistantHistoryPojo() {
        triggerNumMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        workReportTriggerNumMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        waitInvalidIdsMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        waitInvalidListMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        validPojoList = new ArrayList<>();
    }
}
